package org.ahuanlien.crm.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

@Setter@Getter
public class Salary extends BaseDomain{

    //员工姓名
    private Employee emp;
    //部门名称
    private Department dept;
    //员工联系电话
    private String tel;
    //员工邮箱
    private String email;
    //月薪
    private BigDecimal salary;
    //奖金
    private BigDecimal bonus;
    //日期
    @JsonFormat(pattern = "yyyy-MM-dd",timezone="GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date date;
    //总薪资
    private BigDecimal  totalSalary;


}